<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'top_student.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
</style>
<body style="overflow:-Scroll;overflow-y:hidden" >  
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>首页</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script type="text/javascript" src="js/jquery-1.6.min.js"></script>
<script type="text/javascript" src="js/index.js"></script>
</head>

<body bgcolor="#669999">
<div class="nav-top">
	<span>学生信息管理系统</span>
    <div class="nav-topright">
    	<!--以下是动态显示时间的代码-->
    	<p id="pid"> </p>
	   <script type="text/javascript">
            function time(){
                var date=new Date();
                var time=date.toLocaleString();
                var p=document.getElementById("pid");
                p.innerHTML=time;
                //var text=p.firstChild;
                //text.nodeValue=time;s
            }
            
            setInterval("time();",1000)
       </script>
        <span>您好！<%=session.getAttribute("name")%></span>
        <!--显示登陆者身份-->
        <span>
        <text property="dateCreated" value="${dateCreated}" />
        </span>
        
      <span bgcolor=""><a href="exitServlet" target="_parent" ><font color="#db5625">注销</font></a></span>
    </div>
</div>

</body>
</html>
<script type="text/javascript">
	
</script>
</html>
